package com.qin.mall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Leisure
 * create 2022 2022/10/11 21:06
 **/
@SpringBootApplication
//@EnableTransactionManagement开启事务支持
//在service实现类中加上@Transactional，如果该类中某个业务方法在执行时报错会进行回滚
@EnableTransactionManagement
public class AdminStart {
    public static void main(String[] args) {
        SpringApplication.run(AdminStart.class, args);
    }
}